CPSC 521 Assignment 9

نویسنده

  • Brad Bingham
چکیده

Cellular automata (CAs) are inherently parallel as the cells evolve in parallel with inter-cell communication restricted to a local neighborhood. The fish and sharks problem from assignment 4 is an example of a 2D CA. In this assignment, we focus on 1D CA where each cell is in one of two states (0 or 1) and its value the next time step depends on the current cell value and the right and left neighbors. In the most general case, each cell i has a next state function fi : B × B × B → B, where B = {0, 1}, and cells 1 and n are adjacent, where n is the number of cells. Given a CA of size n, define g : B → B as the next state function over all cells. We say a CA is reversible if the mapping g is 1 to 1. A naive algorithm could check if a CA is reversible in O(n2) by applying g to each state in B and noting the image. The CA is reversible if and only if all images are unique. A new algorithm, proposed by Jesse Bingham, can make this decision in O(n) time. An informal outline of the algorithm follows. Let T = {000, 001, 010, 011, 100, 101, 110, 111}, the 8 possible states that a cell and its left and right neighbors can have, and let N = 1, 2, ..., n. Define digraph D to have the vertex set V = T ×N (so that each vertex can be written as (abc, i) 1 where a, b, c are binary digits and 1 ≤ i ≤ n). There is an arc from vertex (abc, i) to (xyz, j) if and only if b = x, c = y, and j = i + 1 or i = n and j = 1. Call an n-cycle in D c1, c2, ..., cn an assignment-cycle if all vertices have the second component of each ci is i. Note that D and all assignmentcycles depend only on n and not on any particular CA. A CA can be defined in terms of the functions for each cell i, fi. Given a CA f1, f2, ..., fn, define function L : V → B such that L((abc, i)) = fi(a, b, c). For an assignment cycle C = c1, ..., cn, let the label sequence of C be L(c1), ..., L(cn). Now observe that a CA is reversible if and only if no two assignment-cycles have the same label sequence. This is seen by noting that assignment-cycles naturally correspond to a CA state s and the label sequence to g(s). If two assignment-cycles s1 and s2 have the same label sequence, then g(s1) = g(s2) and the CA is not reversible. To determine if two assignment-cycles have the same label sequence, define a sequence of sets S1, S2, ..., Sn where each Si is a set of 4-tuples of elements of T. These sets will have the property that (w, x, y, z) ∈ Si if and only if there exist

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

[Comparative study of Acid extraction tests of metal products containing lead].

The international standard ISO 8124-3: 1997 "Safety of toys -Part 3: Migration of certain elements" and "Interim Enforcement Policy for Children's Metal Jewelry Containing Lead- 2/3/2005" by the U.S. Consumer Product Safety Commission (CPSC) to control the amount of eluted lead from metal accessories cannot be simply compared, because the acid extraction methods and the limit values are differe...

متن کامل

Parallel Computation of High Dimensional Robust Correlation and Covariance Matrices Using Quadratic Correlation method. CPSC 521 Parallel Algorithms and Architecture: Project Report

The computation of covariance and correlation matrices is critical to many data mining applications and processes. Unfortunately the classical covariance and correlation methods are very sensitive to outliers. Robust methods, such as Quadratic Correlation (QC) and Maronna method, have been proposed. However, the existing algorithm for QC only gives acceptable performance when the dimensionality...

متن کامل

0 - 521 - 51851 - 2 - Stochastic Scheduling

absolute deviation, 15, 29 absolute deviation robust schedule, 27 Absolute Deviation Robust Scheduling Problem, 13, 17, 27 absolute robust single-machine sequence, 16 activity duration, 145, 151 activity network, 143, 146, 154 activity-on-arc network, 143, 149–151 activity-on-node network, 144, 148 agile, 8 agility, 1 almost surely smallest sequence, 8 analytical expression, 94 approximation al...

متن کامل

Topology of Streptococcus pneumoniae CpsC, a polysaccharide copolymerase and bacterial protein tyrosine kinase adaptor protein.

In Gram-positive bacteria, tyrosine kinases are split into two proteins, the cytoplasmic tyrosine kinase and a transmembrane adaptor protein. In Streptococcus pneumoniae, this transmembrane adaptor is CpsC, with the C terminus of CpsC critical for interaction and subsequent tyrosine kinase activity of CpsD. Topology predictions suggest that CpsC has two transmembrane domains, with the N and C t...

متن کامل

Segmentation of Handprinted Letter Strings Using a Dynamic Programming Algorithm

Segmentation of handwritten input into individual characters is a crucial step in many connected handwriting recognition systems. This paper describes a segmentation algorithm for letters in Roman alphabets, curved pre-stroke cut (CPSC) segmentation. The CPSC algorithm evaluates large set of curved cuts through the image of the input string using dynamic programming and selects a small “optimal...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006